package leetcode.code447;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution447 implements IDebug {

	public abstract int numberOfBoomerangs(int[][] points);

	private void debug(String str1, int e) {
		int[][] points = HelpDebug.str2array1(str1);
		int r = this.numberOfBoomerangs(points);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug1() {
		String str1 = "[[0,0],[1,0],[2,0]]";
		int e = 2;
		debug(str1, e);
	}

	@Override
	public void debug2() {
		String str1 = "[[1,1],[2,2],[3,3]]";
		int e = 2;
		debug(str1, e);
	}

	@Override
	public void debug3() {
		String str1 = "[[1,1]]";
		int e = 0;
		debug(str1, e);
	}

	@Override
	public void debug4() {
		String str1 = "[[0,0],[1,0],[-1,0],[0,1],[0,-1]]";
		int e = 20;
		debug(str1, e);
		// TODO Auto-generated method stub
	}

}
